package xin.core;

/**
 * <pre>
 * App Constant
 * </pre>
 *
 * @author lixin_ma@outlook.com
 * @version 1.0
 * @since 2018/7/28 16:53
 */
public class AppConstant {
    public static final int SEQ_NUM_SIZE = 5;// 自定义编号序列号长度

    /*****************************
     *   系统  权限 大类  *
     ****************************/
    public static final String MENU_CUSTOMER_LOAN = "CUSTOMER_LOAN";
    public static final String MENU_BANK_MANAGER = "BANK_MANAGER";
    public static final String MENU_BANK_REVIEW = "BANK_REVIEW";
    public static final String MENU_BANK_AFTER = "BANK_AFTER";
    public static final String MENU_RISK_MONITOR = "RISK_MONITOR";
    public static final String MENU_COMMOM = "COMMOM";
    public static final String MENU_ROOT = "root";
    public static final String SUPER_AMDIN = "SuperAdmin";
    public static final String MENU_BANK_ADMIN = "FinOrgAdmin";
    public static final String ROLE_ENT = "ent";


    /*****************************
     *   配置表分组  *
     ****************************/
    public static final String CODE_ENT_SOURCE = "ent_source";//数据源类型

    /**
     * 系统默认密码
     */
    public static final String DEFAULT_PASSWD = "123456";
    public static final String INDEX = "redirect:index.html";

    /*****************************
     *   JJWT Constant Define    *
     ****************************/
    public static final String JWT_ID = "jwt";
    /**
     * TODO 自定义的，先用这个后期完善
     */
    public static final String JWT_SECRET = "hhcJHZLHwhTiUuXx9uypKossBtdDkH4qptHFYMArcoOF4eo9VkGE2I0Mqp45FiGBM9ebQJW1qvS0z6OCbSjncSHLZpzhLyUZEYxdDCRBmbL5A6a8GcPXM96NpgRBbl2Ao9YPrFrHb2l1nek4ncNGL43CKvn37ZElhivHXtbU8J4puCDpqP02VHNyZ9s9jiozqFv6vX8XQQm5SwtjefSXaz3zvdOXG6KspHIEwhUQzUX3PLXyMgibJbkTzVUuuX3LZR6Q0kqPK6yK5BaF8jy0yf1VCs2QvdHzVOFhFqvNi3xUo3yn5fh0LqFWmyAHl5HiqSpyTHcTpwIdu9cwclhwQOv0zOIPPhSQUU30qn0D08k6kV7cWoHre1DT2wqzGAWWpk36N3OOGST61EcGPBiABPx84hRGf6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0Ypd6pTbs8Jme2ua11oYXNM6JqxlS6Jl6BgWNdXuDkpyy3ETMyDtxVxUbLmZIAFEq8wgGf3pTTTONEY7qWNbzirqLBRKpEX3KfTHOW1Oy4o7LqRof5bvlqTpErfRWxEzs0immbBHc7KGVK8mfJScQwAME3pEUm4dW2JsoB3NoXSIk57Pxd1iwRanGgHsPedDAHU9WixHMO00X0hA0YHFa0Xsta4aCo1XI2GsBvXGwjNbJAteAgUEVomeWU0qEIsITzQgt85jXWa56eLxByFkNwPsPkvXDjs4Tr0HM6uTj2XjkXUVTstjXNMYqYwTqkQCyUKn";
    public static final String JWT_ISSUER = "lixin.ma";
    public static final String LOGIN_TIME = "LOGIN_TIME";//令牌获取时间，即登录时间
    public static final String LOGIN_LOG_ID = "lms";//登录日志ID
    public static final String USER_ID = "userId";//登录日志ID

    public static final int JWT_TTL = 60*60*1000;  //millisecond
    public static final int JWT_REFRESH_INTERVAL = 55*60*1000;  //millisecond
    public static final int JWT_REFRESH_TTL = 12*60*60*1000;  //millisecond
    public static final String CLAIM_KEY_USERNAME = "sub";
    public static final String CLAIM_KEY_SALT = "salt";
    public static final String CLAIM_KEY_PERMISSIONS = "permissions";
    public static final String CLAIM_KEY_ROLES = "roles";
    public static final String CLAIM_KEY_CREATED = "created";
    public static final String CLAIM_KEY_EXP = "exp";
    public static final String JWT_HEADER = "Authorization";


    /**
     * Base64下的png图片字符串前缀
     */
    public static final String BASE64_IMAGE_PREFIX_PNG = "data:image/png;base64,";

    public static final String JOB_GROUP_MONITOR = "AFTER_LOAN_MONITOR";

    /**
     * Quartz Context Key
     */
    public  static final String QUARTZ_CONTEXT = "applicationContext_quartz";

}

